package com.lrd.snapshotorder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 订单任务表
 */
@Data
@TableName(value = "order_task")
public class OrderTask {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发货时间
     */
    @TableField(value = "post_time")
    private LocalDate postTime;

    /**
     * 订单批次数量
     */
    @TableField(value = "batch_size")
    private Integer batchSize;

    /**
     * 批次号
     */
    @TableField(value = "batch_number")
    private Integer batchNumber;

    /**
     * 金额下限
     */
    @TableField(value = "min_amount")
    private Integer minAmount;

    /**
     * 金额上限
     */
    @TableField(value = "max_amount")
    private Integer maxAmount;

    /**
     * 固定金额
     */
    @TableField(value = "default_amount")
    private Integer defaultAmount;

    /**
     * 0-进行中，1-完成，2-停止
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 订单场景：1-金额区间，2-固定金额
     */
    @TableField(value = "scene")
    private String scene;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "gmt_modify")
    private LocalDateTime gmtModify;
}